\hypertarget{classc_ground_v1}{\section{c\-Ground\-V1类 参考}
\label{classc_ground_v1}\index{c\-Ground\-V1@{c\-Ground\-V1}}
}


地板类，升级版； 和c\-Ground的区别： 1）是构造函数的参数。 2) 可以剔除网格。  




{\ttfamily \#include $<$c\-Ground\-V1.\-h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_ground_v1_a2f8e7edd7edca53f45531c08b855c4ce}{{\bfseries c\-Ground\-V1} (\hyperlink{classc_vertex_decl}{c\-Vertex\-Decl} $\ast$p\-Vertex\-Decl, const \hyperlink{struct_terrain}{Terrain} \&t)}\label{classc_ground_v1_a2f8e7edd7edca53f45531c08b855c4ce}

\item 
\hypertarget{classc_ground_v1_ab1b32993a3ed9d45ca37ec9e53298b73}{void \hyperlink{classc_ground_v1_ab1b32993a3ed9d45ca37ec9e53298b73}{init\-\_\-light\-\_\-tex\-\_\-ground\-\_\-sub\-\_\-mesh} (\hyperlink{classc_height_map}{c\-Height\-Map} $\ast$p\-Height\-Map, D3\-D\-X\-V\-E\-C\-T\-O\-R3 Center=Zero)}\label{classc_ground_v1_ab1b32993a3ed9d45ca37ec9e53298b73}

\begin{DoxyCompactList}\small\item\em 初始化整个网格 \end{DoxyCompactList}\item 
\hypertarget{classc_ground_v1_aacec4e84a3eac998b5c6dd6819891431}{void \hyperlink{classc_ground_v1_aacec4e84a3eac998b5c6dd6819891431}{draw\-\_\-light\-\_\-tex\-\_\-sub\-\_\-mesh\-\_\-ground} ()}\label{classc_ground_v1_aacec4e84a3eac998b5c6dd6819891431}

\begin{DoxyCompactList}\small\item\em 渲染子网格 \end{DoxyCompactList}\item 
\hypertarget{classc_ground_v1_a929bd2731a539ff3c22e5fc4349115b7}{float \hyperlink{classc_ground_v1_a929bd2731a539ff3c22e5fc4349115b7}{get\-\_\-light\-\_\-tex\-Ground\-\_\-sub\-\_\-mesh\-\_\-\-Y} (\hyperlink{classc_height_map}{c\-Height\-Map} $\ast$p\-Height\-Map, float Row, float Col)}\label{classc_ground_v1_a929bd2731a539ff3c22e5fc4349115b7}

\begin{DoxyCompactList}\small\item\em 给出位置得到所处的高度 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_ground_v1_a9f2c1ad9fa3deee39d68619c33ca7c45}{vector$<$ I\-D3\-D\-X\-Mesh $\ast$ $>$ \hyperlink{classc_ground_v1_a9f2c1ad9fa3deee39d68619c33ca7c45}{\-\_\-\-Ray\-Test\-Mesh}}\label{classc_ground_v1_a9f2c1ad9fa3deee39d68619c33ca7c45}

\begin{DoxyCompactList}\small\item\em 用于射线相交使用；存储了经过camera\-V1剔除后的子网格。 \end{DoxyCompactList}\item 
\hypertarget{classc_ground_v1_a906b8da05d29914905ef4768598e03b0}{int \hyperlink{classc_ground_v1_a906b8da05d29914905ef4768598e03b0}{\-\_\-\-D\-\_\-\-Mesh\-In\-Frustum}}\label{classc_ground_v1_a906b8da05d29914905ef4768598e03b0}

\begin{DoxyCompactList}\small\item\em 在平截头的网格数。 \end{DoxyCompactList}\item 
\hypertarget{classc_ground_v1_aed1310d9019896a8717905f4d9abe741}{int \hyperlink{classc_ground_v1_aed1310d9019896a8717905f4d9abe741}{\-\_\-\-D\-\_\-\-Num\-Sub\-Rows}}\label{classc_ground_v1_aed1310d9019896a8717905f4d9abe741}

\begin{DoxyCompactList}\small\item\em 被分割行的块数。 \end{DoxyCompactList}\item 
\hypertarget{classc_ground_v1_ae9ce9affdffa42c7f4a0a5c8cc8c9753}{int \hyperlink{classc_ground_v1_ae9ce9affdffa42c7f4a0a5c8cc8c9753}{\-\_\-\-D\-\_\-\-Num\-Sub\-Cols}}\label{classc_ground_v1_ae9ce9affdffa42c7f4a0a5c8cc8c9753}

\begin{DoxyCompactList}\small\item\em 被分割列的块数。 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected 成员函数}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_ground_v1_ab41c97b14628d56e1547d83d566aa8af}{void {\bfseries sub\-\_\-mesh} (R\-E\-C\-T \&Rect, vector$<$ \hyperlink{struct_light_texture_vertex_v1}{Light\-Texture\-Vertex\-V1} $>$ \&Gobal\-Vertex)}\label{classc_ground_v1_ab41c97b14628d56e1547d83d566aa8af}

\end{DoxyCompactItemize}


\subsection{详细描述}
地板类，升级版； 和c\-Ground的区别： 1）是构造函数的参数。 2) 可以剔除网格。 

\begin{DoxyRemark}{备注}
内部使用从c\-Camera\-V1来剔除不可见的网格块。 需要的\-V1系列：c\-Camera\-V1。 
\end{DoxyRemark}


该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
E\-:/!代码工厂/3\-D引擎/c\-Ground\-V1.\-h\item 
E\-:/!代码工厂/3\-D引擎/c\-Gournd\-V1.\-cpp\end{DoxyCompactItemize}
